﻿using System;
using WaveEngine.Common.Graphics;
using WaveEngine.Framework;
using WaveEngine.Components.Graphics2D;
using WaveEngine.Framework.Graphics;
using WaveEngine.Framework.Services;

namespace Propulsion.iOS.Core.Scenes
{
	public class Scene : WaveEngine.Framework.Scene
	{
		protected override void CreateScene ()
		{
			var sky = new Entity ("Sky")
				.AddComponent (new Sprite ("Content/Sky.wpk"))
				.AddComponent (new SpriteRenderer (DefaultLayers.Alpha))
				.AddComponent (new Transform2D () {

					Origin = new WaveEngine.Common.Math.Vector2 (0.5f, 1),
					X = WaveServices.Platform.ScreenWidth / 2,
					Y = WaveServices.Platform.ScreenHeight
				} );

			EntityManager.Add (sky);
		}
	}
}